package com.test.design.pattern.objserver;

/**
 * @ClasName WeiXinUser
 * @Descripution TODO 具体的观察者角色类
 * @Author USER
 * @Date 2022/2/24 14:10
 * @Version V1.0
 */
public class WeiXinUser implements  Observer{

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    public void update(String msg) {
        System.out.println(name + "-" + msg);
    }
}
